﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp8
{
    class Program
    { 
        static void Main(string[] args)
        {
            Console.WriteLine("请输入第一个数字:");
            double num1 = double.Parse(Console.ReadLine());
            Console.WriteLine("请输入第二个数字:");
            double num2 = double.Parse(Console.ReadLine());
           
            Console.WriteLine("请选择其一:1、2、3、4");
            double choose = double.Parse(Console.ReadLine());
            Test test= new Test(num1, num2);
            
           
            switch(choose)
            {
                case 1:
                    test.Add();
                    break;
                case 2:
                    test.Minus();
                    break;
                case 3:
                    test.Multiply();
                    break;
                case 4:
                    test.Divide();
                    break;
                default:
                    Console.WriteLine("错误");
                    break;
            }
            
        }

    }
}
   